{% extends "base.html" %}

{% block body %}
  <div class="content">
    {% for e in entries %}
      {% module Entry(e, True) %}
    {% end %}

    <div>
      <ul class="pager">
        {% if page > 1 %}
          <li class="previous"><a href={{ '/?page={}'.format(page - 1) if page > 2 else '/' }}>&laquo;</a></li>
        {% end %}
          <li>第 {{ page }} 页</li>
        {% if page < last %}
          <li class="next"><a href={{ '/?page={}'.format(page + 1) }}>&raquo;</a></li>
        {% end %}
      </ul>
    </div>
  </div>
{% end %}
